package main

import (
	"fmt"
	"net/http"
	"time"
)

func main() {
	http.HandleFunc("/time", func(w http.ResponseWriter, r *http.Request) {
		w.Write([]byte(time.Now().Format("2006-01-02 15:03:04")))
		r.ParseForm()
		fmt.Println(r.Form)
		fmt.Println(r.PostForm)
	})

	http.ListenAndServe("127.0.0.1:9999", nil)
}
